<?php
function Smiley($texttoreplace)
{
    $smilies=array( 
    
    
    ':)' => "<img src='images/smilies/smile.gif'>",
	':D' => "<img src='images/smilies/bigsmile.gif'>",
	':d' => "<img src='images/smilies/bigsmile.gif'>",
	':p' => "<img src='images/smilies/tongue.gif'>",
	':P' => "<img src='images/smilies/tongue.gif'>",
    ':o'=>     "<img src='images/smilies/shocked.gif'>",
	':O'=>     "<img src='images/smilies/shocked.gif'>",
    ':[angry]' =>"<img src='images/smilies/angry.gif'>",
    ':[wacko]'=>"<img src='images/smilies/wacko.gif'>",
    ':[cool]'=>"<img src='images/smilies/cool.gif'>",
    ':[frown]'=>"<img src='images/smilies/frown.gif'>",
    ':[ninja]'=>"<img src='images/smilies/ninja.gif'>",
    ':[wink]'=>"<img src='images/smilies/wink.gif'>",
    ':[sad]'=>"<img src='images/smilies/sad.gif'>",
    ':[sleep]'=>"<img src='images/smilies/sleep.gif'>",
    ':[wub]'=>"<img src='images/smilies/wub.gif'>",
    ':[dry]'=>"<img src='images/smilies/dry.gif'>",
    ':[huh]'=>"<img src='images/smilies/huh.gif'>",
    ':[lol]'=>"<img src='images/smilies/lol.gif'>",
    ':[happy]'=>"<img src='images/smilies/happy.gif'>",
	':[mellow]'=>"<img src='images/smilies/mellow.gif'>",
	':[confused]'=>"<img src='images/smilies/confused.gif'>",
	':[unsure]'=>"<img src='images/smilies/unsure.gif'>",
    'fuck'=>"$#$@",
    'Fuck'=>"&$#@"
  
 
    );

    $texttoreplace=str_replace(array_keys($smilies), array_values($smilies), $texttoreplace);
    return $texttoreplace;
}
?>
